package com.pkk.cloud.support.admin.dto.req.resources;

import java.io.Serializable;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @description: 添加资源的请求类
 * @author: peikunkun
 * @create: 2020-04-11 19:38
 **/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class OauthResourceButtonAddReqDto implements Serializable {

  private static final long serialVersionUID = -3640757487313875328L;

  /**
   * 资源名称
   */
  @NotBlank(message = "请输入资源名称")
  private String resourceName;

  /**
   * 父id
   */
  @NotNull(message = "请选择父级信息")
  private Long resourcePid;

  /**
   * 前端唯一key
   */
  @NotBlank(message = "请输入前端唯一码")
  private String resourceCode;

  /**
   * 资源所属客户端id(penguin_oauth_client的客户端client_id)
   */
  @NotNull(message = "请选择所属客户端信息")
  private Long ownClientId;


  /**
   * 图片路径
   */
  private String classIcon;

  /**
   * 菜单排序
   */
  private Integer resourceSort = 0;


}
